#region  == Copyright == 
// =====================================================================
//  Microsoft Consulting Services France - Aymeric Mouillé - 2013
//  Projet     : CRM Solution Management Tool
//  Fichier    : JobItem.cs (30/04/2013 16:43)
//  
//  Copyright (C) Microsoft Corporation.  All rights reserved.
// =====================================================================
#endregion

namespace CRM.Solution.Management.Tool
{
    #region  == Using == 
    using System;
    using System.ComponentModel;

    #endregion

    /// <summary>
    /// </summary>
    public class JobItem
    {
        #region Job Id
        /// <summary>
        /// Gets or sets the job id.
        /// </summary>
        /// <value>
        /// The job id.
        /// </value>
        [Category("Identity"), Description("Job unique identifier")]
        public Guid JobId { get; set; }
        #endregion

        #region Name
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        [Category("Identity"), Description("Job name")]
        public string Name { get; set; }
        #endregion

        #region Solution Name
        /// <summary>
        /// Gets or sets the name of the solution.
        /// </summary>
        /// <value>
        /// The name of the solution.
        /// </value>
        [Category("Identity"), Description("Job solution name")]
        public string SolutionName { get; set; }
        #endregion

        #region Created On
        /// <summary>
        /// Gets or sets the created on.
        /// </summary>
        /// <value>
        /// The created on.
        /// </value>
        [Category("Timing"), Description("Job import creation")]
        public string CreatedOn { get; set; }
        #endregion

        #region Progress
        /// <summary>
        /// Gets or sets the progress.
        /// </summary>
        /// <value>
        /// The progress.
        /// </value>
        [Category("Status"), Description("Job import progress")]
        public decimal Progress { get; set; }
        #endregion

        #region Completed On
        /// <summary>
        /// Gets or sets the completed on.
        /// </summary>
        /// <value>
        /// The completed on.
        /// </value>
        [Category("Timing"), Description("Job import completion")]
        public string CompletedOn { get; set; }
        #endregion

        #region Status
        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>
        /// The status.
        /// </value>
        [Category("Status"), Description("Job import status")]
        public string Status { get; set; }
        #endregion

        #region Log Data
        /// <summary>
        /// Gets or sets the log data.
        /// </summary>
        /// <value>
        /// The log data.
        /// </value>
        [Category("Diagnostic"), Description("Job import log data"), Browsable(false)]
        public string LogData { get; set; }
        #endregion

        #region Is Completed
        /// <summary>
        /// Gets or sets a value indicating whether this instance is completed.
        /// </summary>
        /// <value>
        ///     <c>true</c> if this instance is completed; otherwise, <c>false</c>.
        /// </value>
        [Browsable(false)]
        public bool IsCompleted { get; set; }
        #endregion
    }
}
